/**
 * CodeMapUtil.java
 * Product:BaseLayer
 * Version:1.0
 * Copyright 2009 by DNE
 * All Rights Reserved.
 */
package com.site.util;

import java.util.HashMap;
import java.util.List;

/**
 * 资源文件Code管理
 * 
 */
public class CodeMapUtil extends HashMap<Object, Object> implements CodeMap {

	private static final long serialVersionUID = 1L;

	/** 语言种类 */
	private String _lang;

	/**
	 * 构造函数
	 * 
	 */
	public CodeMapUtil(String lang) {
		_lang = lang;
	}

	public List getCodeList(String key) {
		List nodeList = (List) get(key);
		if (nodeList == null) {
			throw new IllegalArgumentException("key = " + key
					+ ": CodeType not found.");
		}
		return nodeList;
	}

	public String get_lang() {
		return _lang;
	}

	public void set_lang(String _lang) {
		this._lang = _lang;
	}
}
